package com.poly.oss.pojo.vo;

import io.minio.messages.Item;
import lombok.Data;

@Data
public class ItemVO {

    private String etag;
    private String objectName;
    //private ResponseDate lastModified;
    //private Owner owner;
    private long size;
    private String storageClass;
    private boolean isLatest;
    private String versionId;
    //private Metadata userMetadata;
    private boolean dir = false;
    //private String encodingType = null;

    public ItemVO(){

    }

    public ItemVO(Item item){
        etag=item.etag();
        objectName=item.objectName();
        //lastModified=item.lastModified();
        //owner=item.owner();
        size=item.size();
        storageClass=item.storageClass();
        isLatest=item.isLatest();
        versionId=item.versionId();
        //userMetadata=item.userMetadata();
        dir=item.isDir();
        //encodingType=item.encodingType();
    }
}
